package easyexcel.controller;

import easyexcel.entity.Person;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.util.List;

/**
 * @author jichao
 * @date 2022/10/31 17:20
 */
@RestController
@RequestMapping("/testListValid")
@Validated
public class TestListController {

    @PostMapping("/test")
    public void getUserByName(@RequestBody @Valid List<Person> drugs) {

    }
}
